package com.effectiv.crm.service.impl;

import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import com.effectiv.crm.domain.Account;
import com.effectiv.crm.repository.AccountRepository;
import com.effectiv.crm.service.api.AccountService;

@Named
public class AccountServiceImpl implements AccountService {
	
	
	@Inject
	private AccountRepository repository;

	public void save(Account account) {
		repository.save(account);		
	}

	public void update(Account account) {
		// TODO Auto-generated method stub
		
	}

	public List<Account> findAll() {
		return repository.findAll();
	}

	public Account findOne(String id) {
		return repository.findOne(id);
	}

	public void delete(Account account) {
		// TODO Auto-generated method stub
		
	}

	

}
